Pygames highscore

by: Trout, 9 years ago


Is it possible to create a high score table which saves the top 10 scores in game with the players name in pygames ?



You must be logged in to post. Please login or register an account.



Yes.

Many ways to do it. Easiest would be to just create a highscores.txt file or something to save them there, accessing the file for the highscores and to see if anyone surpassed. If so, edit the file with the new standings.

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.


thanks for the quick reply :),cool,would I be able to then create a sort algorithm to sort the data for me instead of having to edit it every time ?

-Trout 9 years ago

You must be logged in to post. Please login or register an account.


Sure, I do not see why you wouldn't be able to do that.

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.